//
//  TextViewViewController.m
//  TextView
//

#import "TextViewViewController.h"

@implementation TextViewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
	
	CGRect viewRect = CGRectMake(10, 10, 300, 50);
	UITextView *textView = [[UITextView alloc] initWithFrame:viewRect];
	textView.editable = NO;
	textView.dataDetectorTypes = UIDataDetectorTypePhoneNumber;
	textView.text = @"010-0000-6389";
	[self.view addSubview:textView];
	[textView release];

	viewRect = CGRectMake(10, 70, 300, 50);
	textView = [[UITextView alloc] initWithFrame:viewRect];
	textView.editable = NO;
	textView.dataDetectorTypes = UIDataDetectorTypeLink;
	textView.text = @"Acornpub http://acornpub.co.kr";
	[self.view addSubview:textView];
	[textView release];
}

- (void)dealloc {
    [super dealloc];
}

@end
